<!--编辑会员-->
<style>
	#content{margin:10px;}
	#content .coupon{
		margin-top:5px;
        color:white;
        width:90%;
        display:block;
        background:rgb(152, 161, 152);
        border-radius: 5px;
        padding:10px;
    }
    #content .coupon-over{
    	margin-top:5px;
        background:gray;
        width:100%;
        color:white;
        display:block;
        border-radius: 5px
    }
    #content .coupon .title,#content .coupon-over .title{
        display:inline-block;
        font-size:18px;
        font-weight:bold;
        width:45%;
        text-align:right;
    } 
     #content .coupon .expire,#content .coupon-over .expire{
        display:inline-block;
        font-size:14px;
        font-weight:bold;
        text-align:right;
        width:45%;
    } 
</style>
<div class="dialog_content" id="content">
	<form style="padding:20px;font-size:14px;color:#777" id="info_form" action="{:u('user/coupon')}" method="post">
	<h2>给此用户发送优惠券</h2>
	<div>
		<input type="hidden" name="uid" value="{$uid}" />
		面额：<input name="price" type="text" value="" size="10">&nbsp;元 &nbsp;&nbsp;&nbsp;&nbsp;
		<input type="submit" value="添加">
	</div>
	
	</form>
	<ul class='mt10'>
        <volist name='coupons' id='item'>
        <li class='<php>if($item['expire_at']<=date('Y-m-d') || $item['use_at']>0){echo 'coupon-over';}else{echo 'coupon';}</php> mt10'>
                <span class='title'>{$item.title}</span>
                <span class='expire'>有效期至<br>{$item.expire_at}</span>
                <a href="{:u('user/coupon', array('act'=>'delete','id'=>$item['id'],'uid'=>$item['uid']))}" class="right">删除</a>
        </li>
        </volist>
    </ul>
</div>